$(function (){
    $.post($("#hidden_info").attr("rel")+"/Admin/findOne",{},function (data){
        if(!data){
            location.href="timeReturn.html";
        }
        var id = data.id;
        var name = data.name;
        $("#wel").html("欢迎您,"+id+":"+name);
    });

});



function logout(){
    $.post($("#hidden_info").attr("rel")+"/Admin/exit",{},function (data){

        if(data.flag){
            location.href = "index.jsp";
        }

    });
}

function admin_con(){
    location.href = "admin_con.jsp";
}
function canteen_con(){
    location.href = "canteen_con.jsp";
}
function state_con(){
    location.href = "state_con.jsp";
}
function exp_con(){
    location.href = "exp_con.jsp";
}
function food_con(){
    location.href = "food_con.jsp";
}
function stu_con(){
    location.href = "stu_con.jsp";
}

function wel_index(){
    location.href = "back.jsp";
}




